//解决浏览器缓存使用添加一个时间戳参数
function verify() {
	//获取文本框的值
	var username = $("#username").val();
	var url = "AJaxServlet?username=" + username;
	url = addTimeParam(url);
	//做get请求
	$.get(url,
		function(data) {
			$("#result").html(data);
		});
}
//拼接地址
function addTimeParam(url) {
	var date = new Date().getTime();
	if (url.indexOf("?") >= 0) {
		url = url + "&t=" + date;
	} else {
		url = url + "?t=" + date;
	}
	return url;
}